<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Voodoo Shader Framework: K:/VoodooShader/Framework/MaterialManager.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>K:/VoodooShader/Framework/MaterialManager.hpp</h1><a href="_material_manager_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00002"></a>00002 <span class="preprocessor">#ifndef VOODOO_MATMANAGER_HPP</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span><span class="preprocessor">#define VOODOO_MATMANAGER_HPP</span>
<a name="l00004"></a>00004 <span class="preprocessor"></span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;<a class="code" href="_meta_8hpp.html">Meta.hpp</a>&quot;</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="keyword">namespace </span>VoodooShader
<a name="l00008"></a>00008 {
<a name="l00014"></a><a class="code" href="class_voodoo_shader_1_1_material_manager.html">00014</a>         <span class="keyword">class </span><a class="code" href="_meta_8hpp.html#a64a3622e4b9bb13e6e7a451bfaa84a48">VOODOO_API</a> <a class="code" href="class_voodoo_shader_1_1_material_manager.html" title="Manager class to simplify loading and using material (texture-bound) shaders.">MaterialManager</a>
<a name="l00015"></a>00015         {
<a name="l00016"></a>00016         <span class="keyword">public</span>:
<a name="l00017"></a>00017                 <a class="code" href="class_voodoo_shader_1_1_material_manager.html" title="Manager class to simplify loading and using material (texture-bound) shaders.">MaterialManager</a>(<a class="code" href="class_voodoo_shader_1_1_core.html" title="Core engine class for the Voodoo Shader Framework.">Core</a> * parent);
<a name="l00018"></a>00018 
<a name="l00030"></a>00030                 <span class="keywordtype">void</span> Add(<a class="code" href="class_voodoo_shader_1_1_texture.html">Texture</a> * texture, <a class="code" href="class_voodoo_shader_1_1_shader.html">Shader</a> * shader, <span class="keywordtype">bool</span> global = <span class="keyword">false</span>);
<a name="l00031"></a>00031 
<a name="l00038"></a>00038                 <span class="keywordtype">void</span> Remove(<a class="code" href="class_voodoo_shader_1_1_texture.html">Texture</a> * texture);
<a name="l00039"></a>00039 
<a name="l00051"></a>00051                 <span class="keywordtype">void</span> Bind(<a class="code" href="class_voodoo_shader_1_1_texture.html">Texture</a> * texture);
<a name="l00052"></a>00052 
<a name="l00061"></a>00061                 <span class="keywordtype">void</span> Unbind();
<a name="l00062"></a>00062 
<a name="l00069"></a>00069                 <a class="code" href="class_voodoo_shader_1_1_shader.html">Shader</a> * Find(<a class="code" href="class_voodoo_shader_1_1_texture.html">Texture</a> * texture);
<a name="l00070"></a>00070 
<a name="l00071"></a>00071         <span class="keyword">private</span>:
<a name="l00072"></a><a class="code" href="class_voodoo_shader_1_1_material_manager.html#af795ee1773a096e3ac6e3535249c5f07">00072</a>                 <a class="code" href="class_voodoo_shader_1_1_core.html" title="Core engine class for the Voodoo Shader Framework.">Core</a> * mParent;
<a name="l00073"></a><a class="code" href="class_voodoo_shader_1_1_material_manager.html#a5945d39328f50cf8513b854116d3a8b4">00073</a>                 <a class="code" href="namespace_voodoo_shader.html#a004e3b02ae28f6baba57fa4e09b23ce8">MaterialMap</a> mMaterials;
<a name="l00074"></a><a class="code" href="class_voodoo_shader_1_1_material_manager.html#a1947a1c91f73bb965141b66a14317789">00074</a>                 <a class="code" href="class_voodoo_shader_1_1_shader.html">Shader</a> * mDefault;
<a name="l00075"></a><a class="code" href="class_voodoo_shader_1_1_material_manager.html#acc89a0dff3d32f506a226f6dc67f9f50">00075</a>                 <a class="code" href="class_voodoo_shader_1_1_shader.html">Shader</a> * mBound;
<a name="l00076"></a>00076         };
<a name="l00077"></a>00077 }
<a name="l00078"></a>00078 
<a name="l00079"></a>00079 <span class="preprocessor">#endif </span><span class="comment">/*VOODOO_MATMANAGER_HPP*/</span>
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Oct 14 23:18:33 2010 for Voodoo Shader Framework by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
